package com.maoxx.stuchoosemssbv_service.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @className: InfoController
 * @author: Maoxx
 * @date: 2024/11/2 15:48
 * @Version: 1.0
 * @description:
 */


@RestController
@RequestMapping("/info")
@CrossOrigin(origins = "*")
public class InfoController {
    private final String CURRENT_TERM = "22-春季学期"; // 当前学期
    private final boolean FORBID_COURSE_SELECTION = false; // 是否禁止选课

    @RequestMapping("/getCurrentTerm")
    public String getCurrentTerm() {
        return CURRENT_TERM;
    }

    @RequestMapping("/getForbidCourseSelection")
    public boolean getForbidCourseSelection() {
        return FORBID_COURSE_SELECTION;
    }

}
